<?php
require_once(dirname(dirname(__FILE__)) . '/app.php');


if( $visit_history = cookieget('rvisit') ){
	$a = explode('&', $visit_history,5);
	$html = '<ul>';
	foreach( $a as $k=>$v){
		$item = Table::Fetch( 'team', $v, 'id');
		$html.= '<li><a href=team.php?id='.$item['id'].' class=preview><img src=http://127.0.0.1/static/'.$item['image'].' width=100 height=63 /></a><a class=title target=_blank href=team.php?id='.$item['id'].'>'.$item['title'].'</a><span class=info><em class=now_price>'.$currency.''.moneyit($item["team_price"]).'</em>&nbsp;<em class=real_price>'.moneyit($item["market_price"]).'</em></span></a></li>';
	}
	$html.='</ul>';
	
}

die($html);